<include file="common/header_lixin" title="账户解封" />
<style>
    .weui-label{
        color: #292828;
    }
</style>
<div class="page">
    <div class="page-hd">
        <div class="header bor-1px-b">
    <div class="header-left">
        <a href="javascript:history.go(-1)" class="left-arrow"></a>
    </div>
    <div class="header-title">账户解封</div>
    <div class="header-right">
        <a href="#"></a>
    </div>
</div>
    </div>

    <div class="page-bd">
        <!-- 页面内容-->
        <div class="weui-cells weui-cells_form">
            <div class="weui-cell">
                <div class="weui-cell__hd">
                    <label class="weui-label">解封账号</label>
                </div>
                <div class="weui-cell__bd">
                    <input class="weui-input" id="account" type="text"  placeholder="请输入解封账号">
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd">
                    <label class="weui-label">二级密码</label>
                </div>
                <div class="weui-cell__bd">
                    <input class="weui-input" id="paypwd"  type="password"  placeholder="请输入二级密码">
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd">
                    <label class="weui-label">身份证号</label>
                </div>
                <div class="weui-cell__bd">
                    <input class="weui-input" id="IDCart" type="text"  placeholder="请输入身份证号">
                </div>
            </div>
        </div>
        <div class="weui-btn-area">
            <a href="javascript:;" onClick="seal()" class="weui-btn weui-btn_primary">帮助解封</a>
        </div>
        <include file="common/footer_lixin"/>
    </div>
</div>

<script>
    $(function() {
        FastClick.attach(document.body);
    });
    var ajax_status = false;
    function seal(){
        var account = $('#account').val();
        var paypwd = $('#paypwd').val();
        var IDCart = $('#IDCart').val();
        if (ajax_status) {return };
        // ajax_status = true;
        $.ajax({
            url : "/Acc/Member/seal",
            type:'post',
            dataType:'json',
            data:{'account': account,'paypwd' : paypwd,'IDCart':IDCart},
            success:function(data){
                if (data.code == 1) {
                    $.toast.prototype.defaults.duration = 1200;
                    $.toast(data.msg, function() {
                        window.location.href='/Acc/Member/index';
                    });
                } else {
                    $.toptip(data.msg,'error')
                }
            },
            error:function(){
                $.toptip('网络异常，请稍后再试','error')
            }
        })
    }
</script>
</body>
</html>